package com.miao.controller.front;

import com.miao.vo.CollectionAddVo;
import com.miao.vo.CollectionVo;
import com.miao.vo.ParttimeVo;
import com.miao.vo.ResultVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author: 丰
 * @date: 2023/3/2 18:01
 */
@RestController
@Api(tags = "/收藏接口")
@RequestMapping("/front/collection")
public class CollectionController {

    @PostMapping("/collect")
    @ApiOperation("添加收藏兼职信息")
    public ResultVo<Integer> addCollection(@RequestBody CollectionAddVo collectionAddVo){
        return null;
    }

    @GetMapping("/selectByCollectionId/{collectionId}")
    @ApiOperation("根据收藏id查询兼职信息")
    public ResultVo<CollectionVo> selectByCollectionId(@PathVariable("collectionId") Integer collectionId){
        return null;
    }

    @GetMapping("/selectAllCollectionsByUserId/{userId}")
    @ApiOperation("根据雇主id查询收藏兼职")
    public ResultVo<List<ParttimeVo>> selectAllCollectionsByUserId(@PathVariable("userId") Integer userId){
        return null;
    }

    @PostMapping("/deleteCollect")
    @ApiOperation("删除收藏的兼职信息")
    public ResultVo<Integer> deleteCollect(@RequestBody CollectionAddVo collectionAddVo){
        return null;
    }
}
